﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace SaleOnlineSystem.Admin.Controls
{
    public partial class ListVideo : System.Web.UI.UserControl
    {
        public string name;
        public string date;
        public string link;
        public string active;
        protected void Page_Load(object sender, EventArgs e)
        {            
                if (!Page.IsPostBack)
                {             
                    DataTable dt = DAL.DCollector.DBCollector.Instance.CallStored("callstored", "SELECT * FROM tbl_Video", true);
                    name = dt.Rows[0]["Video_Name"].ToString();
                    date = dt.Rows[0]["Video_Date"].ToString();
                    link = dt.Rows[0]["Video_Link"].ToString();
                    active = dt.Rows[0]["Video_Active"].ToString();
                }                               
        }
    }
}